package com.chrray.position;

import com.chrray.position.auth.AuthenticationContext;
import com.chrray.position.domain.FdUser;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author lm
 */
@SpringBootApplication
@EnableSwagger2Doc
@MapperScan(basePackages = {"com.chrray.position.mapper"})
@EnableScheduling
public class PositionApplication {


    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(PositionApplication.class, args);
        AuthenticationContext.setupContext(context);

        System.err.println("-----------------------启动完毕-------------------------");

    }

}
